*** Replication Package for "Teacher Content Knowledge in Indian Secondary Schools and Its Relationship with Student Learning" 
*** Main do file
**************************** Instructions for Replicators ************************************
/* In order to replicate the tables and figure from the paper, you just need to run this main do file. Place the path of the replication package in your local machine in the global "ssrp" below, and then run this do-file. The output will appear in ./04_output and a log in ./03_logs. */

global ssrp "" //PUT THE LOCATION OF THE PACKAGE HERE


**************GLOBALS***************
*Make globals for filepaths 


	
set graphics on 

* Make globals for colors, from: https://blog.datawrapper.de/gendercolor/
global my_treatment_color "133 2 249" //purple for one group
global my_control_color "0 196 170" //green for other

* File path globals:
glob dat "$ssrp/01_data"
glob outtab "$ssrp/04_output/tables"
glob outfig "$ssrp/04_output/figures"

******************************OPEN DATA

***Open a log to look at pvalues 
capture log close 
log using "$ssrp/03_logs/p_and_p_log.smcl" , replace 


**Data used
use "$dat/Teacher_Competency.dta" , clear 


**Data Prep
do "$ssrp/02_analysis/1_ssrp_p_and_p_data_cleaning.do"
 

**Tables
do "$ssrp/02_analysis/2_ssrp_tables_p_and_p.do"


**Figures
do "$ssrp/02_analysis/3_ssrp_figures_p_and_p.do"

log close 
